<?php
namespace app\controllers;

use app\models\Supplier;
use YII;

use yii\web\Controller;


class SupplierController extends Controller
{
    public function actionGrid()
    {
        $user = new Supplier();
        //调用模型search方法，把get参数传进去
        $provider = $user->search(YII::$app->request->get());
        return $this->render('grid', [
            'model' => $user,
            'provider' => $provider,
        ]);
    }
}